//SF - CADDY

function animateMarker(theMarker){
	var tMin = theMarker.time;
	var tMax = tMin+theMarker.duration;
	var values = theMarker.comment.split('\n');
	var value1 = Number(values[2]);
	var value2 = Number(values[3]);
	return linear(time, tMin, tMax, value1, value2);
}

var correctMarkerKey;

if(thisLayer.marker.numKeys>0){
	if(thisLayer.marker.nearestKey(time).time <=time||thisLayer.marker.nearestKey(time).index == 1){
		correctMarkerKey = thisLayer.marker.nearestKey(time).index;
	}else{
		correctMarkerKey = thisLayer.marker.nearestKey(time).index-1;
	}
	
	animateMarker(thisLayer.marker.key(correctMarkerKey));
	
}else{
	value;
}